//
// Created by Administrator on 2023-03-12.
//

#ifndef OPENGL_GLUTIL_H
#define OPENGL_GLUTIL_H
#include <GLES3/gl3.h>
class GLUtil {
public:
    GLuint LoadShader(GLenum shaderType, const char *pSource);
    GLuint CreateProgram(const char *pVertexShaderSource, const char *pFragShaderSource, GLuint &vertexShaderHandle, GLuint &fragShaderHandle);
    void DeleteProgram(GLuint &program);

private:
    void CheckGLError(const char *pGLOperation);
};


#endif //OPENGL_GLUTIL_H
